package com.woniu.goodsservice.service.impl;

import com.woniu.goodsservice.dao.AuctionDTODao;
import com.woniu.goodsservice.dto.AuctionDTO;
import com.woniu.goodsservice.dto.AuctionRoomDTO;
import com.woniu.goodsservice.entity.Auction;
import com.woniu.goodsservice.service.AuctionDTOService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("auctionDTOService")
public class AuctionDTOServiceImpl implements AuctionDTOService {

    @Resource
    private AuctionDTODao auctionDTODao;

    @Override
    public List<AuctionRoomDTO> findGoodsByPage() {
        return auctionDTODao.selectByPage();
    }

    @Override
    public Auction queryById(Integer id) {
        return auctionDTODao.queryById(id);
    }

    @Override
    public List<AuctionDTO> findGoodsStartprice() {
        return auctionDTODao.findGoodsStartprice();
    }

    @Override
    public List<AuctionDTO> findGoodsWatchpeople() {
        return auctionDTODao.findGoodsWatchpeople();
    }

    @Override
    public List<AuctionDTO> findGoodsDate() {
        return auctionDTODao.findGoodsDate();
    }

    @Override
    public AuctionRoomDTO selectById(Integer id) {
        return auctionDTODao.selectById(id);
    }
}
